Skip to content

ws get_header bids stream draft - #483

Open
ninaiiad wants to merge 11 commits into
Commit-Boost:mainfrom
ninaiiad:ng/ws-get-header
Open

ws get_header bids stream draft#483
ninaiiad wants to merge 11 commits into
Commit-Boost:mainfrom
ninaiiad:ng/ws-get-header

Conversation

@ninaiiad

Copy link
Copy Markdown
Contributor

No description provided.

@ninaiiad
ninaiiad requested a review from a team July 28, 2026 17:52
Comment thread config.example.toml
Comment thread crates/common/src/pbs/relay.rs Outdated
@JasonVranek

Copy link
Copy Markdown
Collaborator

I like the simplicity of per-slot streams vs the old PoC establishing long lived connections. Q is if handshake overhead is neglible or will be problematic / is this enough time for the relay to establish reliable RTTs?

Comment thread crates/pbs/src/mev_boost/get_header.rs
Comment thread crates/pbs/src/mev_boost/get_header_ws.rs
Comment thread crates/pbs/src/mev_boost/get_header_ws.rs Outdated
Comment thread crates/pbs/src/mev_boost/get_header_ws.rs Outdated
Comment thread crates/pbs/src/mev_boost/get_header_ws.rs Outdated
Comment thread crates/pbs/src/mev_boost/get_header_ws.rs Outdated
ltitanb
ltitanb previously approved these changes Aug 3, 2026
Comment thread config.example.toml Outdated
Comment thread crates/common/src/pbs/relay.rs Outdated
Comment thread crates/pbs/src/mev_boost/get_header_ws.rs
@ninaiiad
ninaiiad force-pushed the ng/ws-get-header branch 3 times, most recently from fd8b6a2 to fa466ca Compare August 3, 2026 19:50
ltitanb
ltitanb previously approved these changes Aug 3, 2026
ltitanb
ltitanb previously approved these changes Aug 4, 2026
Comment thread crates/pbs/src/mev_boost/get_header_ws.rs
"received new header from ws stream"
);

validated?;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here and above at decode_ssz_payload(&bid_bytes, fork)?; we could exit early which could drop the info! and possibly record_status which may leave gaps when debugging. Worse is info! fires -> validation fails, since to a user the info looks like a success.

maybe can consider calling record_status only on the return result of get_header_ws

let (mut stream, _) = match timeout_at(deadline, connect).await {
Ok(Ok(connected)) => connected,
Ok(Err(err)) => {
let rejected = match &err {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider also checking res.body() so the reason for the error is surfaced not just the status

Comment thread crates/pbs/src/mev_boost/get_header_ws.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants